<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#d1{
				display: flex;
				/* flex-direction: row-reverse; */
				/* flex-direction: column-reverse; */
				/* flex-direction: row;
				flex-wrap:wrap-reverse; */
				flex-flow: row-reverse wrap-reverse;
			}
			#d1 div{
				height: 120px;
				width: 120px;
				margin: 3px;
				background-color: darkgray;
				text-align: center;
				font-size: 40px;
				line-height: 120px;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div>9</div>
		</div>
	</body>
</html>
